﻿<div id="mid-con_b">
      <div id="c_list">
  <ul class="tabs">
            	<li><a href="javascript:;">幸运抽奖</a></li>
        </ul>
          
                   
            <div class="panes">
        	<div> 
        	  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        	    <tr>
        	      <td height="10" colspan="2" align="center">
                  <div id="prizeshow"></div>                  </td>
       	        </tr>
        	    
        	    <tr>
        	      <td height="30" colspan="2" align="center">      
                    <table width="100%" border="0">
                      <tr>
                        <td width="200" align="left"><h2>奖项设置：</h2>
                          <p>一等奖：5000积分</p>
                          <p>二等奖：2000积分</p>
                          <p>三等奖：1000积分</p>
                        <p>安慰奖：300积分 </p></td>
                        <td><table border="0">
                          <tr>
                            <td>目前奖池总计:</td>
                            <td><h1>
                                <?=$p_sz['jifen']?>
                              分</h1></td>
                          </tr>
                        </table>
                          <?php
                  	if($p_sz['isopen'] == 0)
					{
				  ?>
&nbsp;&nbsp;&nbsp;&nbsp;
<button id="prize_btn" type="button" class="btn btn-primary" data-loading-text="抽奖中...">点击抽奖</button>
点击抽一次扣30积分
<?php
                  }else{
				  ?>
<a class='btn btn-danger tu-btn-large disabled' href='javascript:;'>抽奖功能未开启</a>
<?php
				  }
				  ?></td>
                      </tr>
                    </table>                    </td>
       	        </tr>
        	    <tr>
        	      <td colspan="2" valign="top"><h2>&nbsp;</h2>       	          </td>
       	        </tr>
        	    <tr>
        	      <td colspan="2"><hr></td>
       	        </tr>
        	    <tr>
        	      <td width="41%"><h2>最近中奖名单：</h2></td>
        	      <td width="59%">&nbsp;</td>
      	      </tr>
        	    <tr>
        	      <td colspan="2"><table width="100%" border="00" cellspacing="0" cellpadding="0">
        	       <?php
                   foreach($plist as $row)
				   {
				   ?>
                    <tr>
        	          <td width="55%"><?=$row['screen_name']?></td>
        	          <td width="20%">中奖<strong>+<?=$row['jifen']?></strong>分</td>
        	         
        	          <td width="25%" align="right"><?=date('Y-n-j H:i:s',$row['datetime'])?></td>
      	          </tr>
        	       <?php
				   }
				   ?>
      	        </table></td>
       	        </tr>
      	    </table>
        	 
        	</div>
            </div>

  </div>
     </div>
      	<script src="/js/weibo.js?version=201301061532"></script>
			 <script src="/js/index.js"></script>
     <script type="text/javascript" src="../js/prize.js?version=201301222132"></script>
<div style="display:none"><script type="text/javascript" src="http://www.aihufen.com/js/tongji.js" ></script></div>